package cn.melonlib.cores.jpa.model.bean.impl;

import cn.melonlib.cores.jpa.model.bean.ErrorResultMessages;

public class DefaultResultMessage implements ErrorResultMessages {
    private String message;
    private Exception exception;
    public DefaultResultMessage(String message){
        this(message,null);
    }
    public DefaultResultMessage(String message,Exception exception){
        this.message=message;
        this.exception=exception;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public Exception getException() {
        return this.exception;
    }
}
